package com.fuxin.mywiki1.service;

import com.fuxin.mywiki1.domain.Demo;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RestController;
import com.fuxin.mywiki1.mapper.DemoMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DemoService {
    @Resource
        private DemoMapper demoMapper;
        public List<Demo> list(){
        // selectByExample 相当于sql的while条件
        return demoMapper.selectByExample(null);
    }

}
